package cn.com.simple.learning.designpattern.behavior.observer;

/**
 * @author jjx
 * @date 2021/7/20 16:15
 */
public class ObserverTest {

    public static void main(String[] args) {
        Topic topic = new Topic();

        FirstObserver firstObserver = new FirstObserver(topic);
        SecondObserver secondObserver = new SecondObserver(topic);

        topic.setState(1);
    }

}
